# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=quota-tools
pkgver=4.06
pkgrel=0
pkgdesc="linux disk quota system tools"
url="https://sourceforge.net/projects/linuxquota/"
arch="all"
license="GPL-2.0-or-later"
makedepends="e2fsprogs-dev libnl3-dev libtirpc-dev
	linux-headers"

subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/sourceforge/linuxquota/quota-$pkgver.tar.gz"

builddir="$srcdir/"quota-$pkgver

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-libwrap \
		--disable-rpc \
		--disable-nls \
		--disable-ldapmail

	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="cece46b8e3a82e8afcf8bfc9f6b310ec91afe034102cebc031bc7d7e04287fdbffb21ab1d3e6e1825175cffa4bad0a4ecbefec0efee028d961b14ac626d5c871  quota-4.06.tar.gz"
